package IOFlow.copy;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

//练习
public class Practice {
    public static void main(String[] args) throws IOException {

        //程序运行所需要的时间
        long start=System.currentTimeMillis();

        FileInputStream fis=new FileInputStream("C:\\Users\\35337\\Desktop\\Temporary\\File\\Test.txt");
        FileOutputStream fos=new FileOutputStream("JavaCase\\TestABC");

        int len;
        byte[] bytes=new byte[1024*1024*5];
        while((len=fis.read(bytes))!=-1){
            fos.write(bytes,0,len);
        }
        fos.close();

        long end=System.currentTimeMillis();

        System.out.println(end-start);
    }
}
